package com.qiyu.jvm.gcroot;

/**
 * @Author linhao
 * @Date created in 3:22 下午 2021/1/16
 */
public class GCRootDemo {

    public void test(String input) {
        input = "idea" + input;
        String a = input.substring(0, 3);
        String b = input.substring(2, 3);
        String temp = a + b;
        System.out.println("this is a test" + input + temp);
    }


    public static void main(String[] args) throws InterruptedException {
        GCRootDemo gcRootDemo = new GCRootDemo();
        while (true){
            Thread.sleep(1000);
            gcRootDemo.test("input");
        }
    }
}
